<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>JSON Voorhees: jsonv/parse.hpp File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  $(document).ready(initResizable);
/* @license-end */</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/x-mathjax-config">
  MathJax.Hub.Config({
    extensions: ["tex2jax.js"],
    jax: ["input/TeX","output/HTML-CSS"],
});
</script><script type="text/javascript" async src="http://www.mathjax.org/mathjax/MathJax.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">JSON Voorhees
   </div>
   <div id="projectbrief">Killer JSON for C++</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('parse_8hpp.html','');});
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">parse.hpp File Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Copyright (c) 2012-2014 by Travis Gockel.  
<a href="#details">More...</a></p>
<div class="textblock"><code>#include &lt;<a class="el" href="config_8hpp_source.html">jsonv/config.hpp</a>&gt;</code><br />
<code>#include &lt;<a class="el" href="string__view_8hpp_source.html">jsonv/string_view.hpp</a>&gt;</code><br />
<code>#include &lt;<a class="el" href="value_8hpp_source.html">jsonv/value.hpp</a>&gt;</code><br />
<code>#include &lt;cstddef&gt;</code><br />
<code>#include &lt;deque&gt;</code><br />
<code>#include &lt;stdexcept&gt;</code><br />
</div>
<p><a href="parse_8hpp_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classjsonv_1_1parse__error.html">jsonv::parse_error</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">An error encountered when parsing.  <a href="classjsonv_1_1parse__error.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structjsonv_1_1parse__error_1_1problem.html">jsonv::parse_error::problem</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Description of a single parsing problem.  <a href="structjsonv_1_1parse__error_1_1problem.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classjsonv_1_1parse__options.html">jsonv::parse_options</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Configuration for various parsing options.  <a href="classjsonv_1_1parse__options.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a67e44effe8977a0121b04126adf2bbe0"><td class="memItemLeft" align="right" valign="top"><a class="el" href="config_8hpp.html#acd0703012bd724b356c177b7bc3d761d">JSONV_PUBLIC</a> std::ostream &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="parse_8hpp.html#a67e44effe8977a0121b04126adf2bbe0">jsonv::operator&lt;&lt;</a> (std::ostream &amp;os, const parse_error::problem &amp;p)</td></tr>
<tr class="memdesc:a67e44effe8977a0121b04126adf2bbe0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get a string representation of a problem.  <a href="parse_8hpp.html#a67e44effe8977a0121b04126adf2bbe0">More...</a><br /></td></tr>
<tr class="separator:a67e44effe8977a0121b04126adf2bbe0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acf2353e4c399045da41db93f3c531138"><td class="memItemLeft" align="right" valign="top"><a class="el" href="config_8hpp.html#acd0703012bd724b356c177b7bc3d761d">JSONV_PUBLIC</a> std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="parse_8hpp.html#acf2353e4c399045da41db93f3c531138">jsonv::to_string</a> (const parse_error::problem &amp;p)</td></tr>
<tr class="memdesc:acf2353e4c399045da41db93f3c531138"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get a string representation of a problem.  <a href="parse_8hpp.html#acf2353e4c399045da41db93f3c531138">More...</a><br /></td></tr>
<tr class="separator:acf2353e4c399045da41db93f3c531138"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:add6106b01e3a224f931c9955395cb5b9"><td class="memItemLeft" align="right" valign="top"><a class="el" href="config_8hpp.html#acd0703012bd724b356c177b7bc3d761d">JSONV_PUBLIC</a> std::ostream &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="parse_8hpp.html#add6106b01e3a224f931c9955395cb5b9">jsonv::operator&lt;&lt;</a> (std::ostream &amp;os, const parse_error &amp;p)</td></tr>
<tr class="memdesc:add6106b01e3a224f931c9955395cb5b9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get a string representation of a <code><a class="el" href="classjsonv_1_1parse__error.html" title="An error encountered when parsing. ">parse_error</a></code>.  <a href="parse_8hpp.html#add6106b01e3a224f931c9955395cb5b9">More...</a><br /></td></tr>
<tr class="separator:add6106b01e3a224f931c9955395cb5b9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a20044634d0e5849e675c9351a74b190f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="config_8hpp.html#acd0703012bd724b356c177b7bc3d761d">JSONV_PUBLIC</a> std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="parse_8hpp.html#a20044634d0e5849e675c9351a74b190f">jsonv::to_string</a> (const parse_error &amp;p)</td></tr>
<tr class="memdesc:a20044634d0e5849e675c9351a74b190f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get a string representation of a <code><a class="el" href="classjsonv_1_1parse__error.html" title="An error encountered when parsing. ">parse_error</a></code>.  <a href="parse_8hpp.html#a20044634d0e5849e675c9351a74b190f">More...</a><br /></td></tr>
<tr class="separator:a20044634d0e5849e675c9351a74b190f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa911d87e222607f57aabd1bfbc8ab96d"><td class="memItemLeft" align="right" valign="top"><a id="aa911d87e222607f57aabd1bfbc8ab96d"></a>
value <a class="el" href="config_8hpp.html#acd0703012bd724b356c177b7bc3d761d">JSONV_PUBLIC</a>&#160;</td><td class="memItemRight" valign="bottom"><b>jsonv::parse</b> (std::istream &amp;input, const parse_options &amp;=parse_options())</td></tr>
<tr class="separator:aa911d87e222607f57aabd1bfbc8ab96d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a32d4b73fbf71903a1a838c787219c4cb"><td class="memItemLeft" align="right" valign="top">value <a class="el" href="config_8hpp.html#acd0703012bd724b356c177b7bc3d761d">JSONV_PUBLIC</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="parse_8hpp.html#a32d4b73fbf71903a1a838c787219c4cb">jsonv::parse</a> (const string_view &amp;input, const parse_options &amp;=parse_options())</td></tr>
<tr class="memdesc:a32d4b73fbf71903a1a838c787219c4cb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Construct a JSON value from the given input.  <a href="parse_8hpp.html#a32d4b73fbf71903a1a838c787219c4cb">More...</a><br /></td></tr>
<tr class="separator:a32d4b73fbf71903a1a838c787219c4cb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1430a7a2795f11c5cd20c822ef603153"><td class="memItemLeft" align="right" valign="top">value <a class="el" href="config_8hpp.html#acd0703012bd724b356c177b7bc3d761d">JSONV_PUBLIC</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="parse_8hpp.html#a1430a7a2795f11c5cd20c822ef603153">jsonv::parse</a> (const char *begin, const char *end, const parse_options &amp;=parse_options())</td></tr>
<tr class="memdesc:a1430a7a2795f11c5cd20c822ef603153"><td class="mdescLeft">&#160;</td><td class="mdescRight">Construct a JSON value from the given input in <code>[begin, end)</code>.  <a href="parse_8hpp.html#a1430a7a2795f11c5cd20c822ef603153">More...</a><br /></td></tr>
<tr class="separator:a1430a7a2795f11c5cd20c822ef603153"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aeed22460d0c90081d82bcd468c860cd6"><td class="memItemLeft" align="right" valign="top"><a id="aeed22460d0c90081d82bcd468c860cd6"></a>
value <a class="el" href="config_8hpp.html#acd0703012bd724b356c177b7bc3d761d">JSONV_PUBLIC</a>&#160;</td><td class="memItemRight" valign="bottom"><b>jsonv::parse</b> (tokenizer &amp;input, const parse_options &amp;=parse_options())</td></tr>
<tr class="separator:aeed22460d0c90081d82bcd468c860cd6"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Copyright (c) 2012-2014 by Travis Gockel. </p>
<p>All rights reserved.</p>
<p>This program is free software: you can redistribute it and/or modify it under the terms of the Apache License as published by the Apache Software Foundation, either version 2 of the License, or (at your option) any later version.</p>
<dl class="section author"><dt>Author</dt><dd>Travis Gockel (<a href="#" onclick="location.href='mai'+'lto:'+'tra'+'vi'+'s@g'+'oc'+'kel'+'hu'+'t.c'+'om'; return false;">travi<span style="display: none;">.nosp@m.</span>s@go<span style="display: none;">.nosp@m.</span>ckelh<span style="display: none;">.nosp@m.</span>ut.c<span style="display: none;">.nosp@m.</span>om</a>) </dd></dl>

<p class="definition">Definition in file <a class="el" href="parse_8hpp_source.html">parse.hpp</a>.</p>
</div><h2 class="groupheader">Function Documentation</h2>
<a id="file_a67e44effe8977a0121b04126adf2bbe0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#file_a67e44effe8977a0121b04126adf2bbe0">&#9670;&nbsp;</a></span>operator&lt;&lt;() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="config_8hpp.html#acd0703012bd724b356c177b7bc3d761d">JSONV_PUBLIC</a> std::ostream&amp; jsonv::operator&lt;&lt; </td>
          <td>(</td>
          <td class="paramtype">std::ostream &amp;&#160;</td>
          <td class="paramname"><em>os</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="structjsonv_1_1parse__error_1_1problem.html">parse_error::problem</a> &amp;&#160;</td>
          <td class="paramname"><em>p</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get a string representation of a problem. </p>

</div>
</div>
<a id="file_add6106b01e3a224f931c9955395cb5b9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#file_add6106b01e3a224f931c9955395cb5b9">&#9670;&nbsp;</a></span>operator&lt;&lt;() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="config_8hpp.html#acd0703012bd724b356c177b7bc3d761d">JSONV_PUBLIC</a> std::ostream&amp; jsonv::operator&lt;&lt; </td>
          <td>(</td>
          <td class="paramtype">std::ostream &amp;&#160;</td>
          <td class="paramname"><em>os</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classjsonv_1_1parse__error.html">parse_error</a> &amp;&#160;</td>
          <td class="paramname"><em>p</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get a string representation of a <code>parse_error</code>. </p>

</div>
</div>
<a id="file_a32d4b73fbf71903a1a838c787219c4cb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#file_a32d4b73fbf71903a1a838c787219c4cb">&#9670;&nbsp;</a></span>parse() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">value <a class="el" href="config_8hpp.html#acd0703012bd724b356c177b7bc3d761d">JSONV_PUBLIC</a> jsonv::parse </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="string__view_8hpp.html#a9cc8d30ac4b07b6f3b7e5c22fb98bcd6">string_view</a> &amp;&#160;</td>
          <td class="paramname"><em>input</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classjsonv_1_1parse__options.html">parse_options</a> &amp;&#160;</td>
          <td class="paramname"> = <code><a class="el" href="classjsonv_1_1parse__options.html">parse_options</a>()</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Construct a JSON value from the given input. </p>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">parse_error</td><td>if an error is found in the JSON. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="file_a1430a7a2795f11c5cd20c822ef603153"></a>
<h2 class="memtitle"><span class="permalink"><a href="#file_a1430a7a2795f11c5cd20c822ef603153">&#9670;&nbsp;</a></span>parse() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">value <a class="el" href="config_8hpp.html#acd0703012bd724b356c177b7bc3d761d">JSONV_PUBLIC</a> jsonv::parse </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>begin</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>end</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classjsonv_1_1parse__options.html">parse_options</a> &amp;&#160;</td>
          <td class="paramname"> = <code><a class="el" href="classjsonv_1_1parse__options.html">parse_options</a>()</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Construct a JSON value from the given input in <code>[begin, end)</code>. </p>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">parse_error</td><td>if an error is found in the JSON. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="file_acf2353e4c399045da41db93f3c531138"></a>
<h2 class="memtitle"><span class="permalink"><a href="#file_acf2353e4c399045da41db93f3c531138">&#9670;&nbsp;</a></span>to_string() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="config_8hpp.html#acd0703012bd724b356c177b7bc3d761d">JSONV_PUBLIC</a> std::string jsonv::to_string </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structjsonv_1_1parse__error_1_1problem.html">parse_error::problem</a> &amp;&#160;</td>
          <td class="paramname"><em>p</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get a string representation of a problem. </p>

</div>
</div>
<a id="file_a20044634d0e5849e675c9351a74b190f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#file_a20044634d0e5849e675c9351a74b190f">&#9670;&nbsp;</a></span>to_string() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="config_8hpp.html#acd0703012bd724b356c177b7bc3d761d">JSONV_PUBLIC</a> std::string jsonv::to_string </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classjsonv_1_1parse__error.html">parse_error</a> &amp;&#160;</td>
          <td class="paramname"><em>p</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get a string representation of a <code>parse_error</code>. </p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_10cd029e0034a3f98d221f50ebb6d9d4.html">jsonv</a></li><li class="navelem"><a class="el" href="parse_8hpp.html">parse.hpp</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.14 </li>
  </ul>
</div>
</body>
</html>
